package com.example.noval.ui.page.read

import com.example.noval.db.mode.TextChapter
import com.example.noval.ui.read.ReadBook

/**
 * @Description
 * @Author zzl
 * @Date 2024/4/1
 */ 
interface DataSource {
    
    val pageIndex: Int get() = ReadBook.durPageIndex

    val currentChapter: TextChapter?

    val nextChapter: TextChapter?

    val prevChapter: TextChapter?

    fun hasNextChapter(): Boolean

    fun hasPrevChapter(): Boolean

    fun upContent(relativePosition: Int = 0, resetPageOffset: Boolean = true)


}